import { NgModule, } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {NzButtonModule} from "ng-zorro-antd/button";
import {NzInputModule} from "ng-zorro-antd/input";
import {NzIconModule} from "ng-zorro-antd/icon";
import {NzTagModule} from "ng-zorro-antd/tag";
import {NzListModule} from "ng-zorro-antd/list";
import {NzNotificationModule, NzNotificationService} from "ng-zorro-antd/notification";
import { FileListComponent } from './file-list/file-list.component';
import {NzTableModule} from "ng-zorro-antd/table";
import {NzDividerModule} from "ng-zorro-antd/divider";
import {NzProgressModule} from "ng-zorro-antd/progress";
import {NzSpinModule} from "ng-zorro-antd/spin";
import {NzAlertModule} from "ng-zorro-antd/alert";
import {NzResultModule} from "ng-zorro-antd/result";
import {NzSpaceModule} from "ng-zorro-antd/space";
import {NzDescriptionsModule} from "ng-zorro-antd/descriptions";
import {NzModalModule, NzModalService} from "ng-zorro-antd/modal";
import {NzBadgeModule} from "ng-zorro-antd/badge";
import {NzMessageService} from "ng-zorro-antd/message";

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    FileListComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzButtonModule,
    NzInputModule,
    NzIconModule,
    NzTagModule,
    NzListModule,
    NzNotificationModule,
    NzTableModule,
    NzDividerModule,
    NzProgressModule,
    NzSpinModule,
    NzAlertModule,
    NzResultModule,
    NzSpaceModule,
    NzDescriptionsModule,
    NzModalModule,
    NzBadgeModule,
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN },
    NzMessageService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
